package service.user;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.BaseMapper;
import com.common.BaseService;

import beans.user.agentxh;
import beans.user.xh;
import mapper.user.agentxhMapper;
import mapper.user.orderMapper;
import mapper.user.xhMapper;

@Service
@Transactional
public class AgentXHServiceImpl<T> extends BaseService<T>{

	@Autowired
	private agentxhMapper<T> _agentxhMapper;

	@Override
	public BaseMapper<T> getMapper() {
		return _agentxhMapper;
	}

	public List<T> queryTodaySerurity(String dateNowStr) {
		return _agentxhMapper.queryTodaySerurity(dateNowStr);
	}

	public void adds(List<T> list) {
		_agentxhMapper.adds(list);
	}
	
	public  void updateWxOpenid(String wxopenid) {
		_agentxhMapper.updateWxOpenid(wxopenid);
	}

	public T getByXH(String xh) {
		return _agentxhMapper.getByXH(xh);
	}
}